package com.bawei.homegroup.binds;
import android.text.TextUtils;
import android.widget.ImageView;



import androidx.databinding.BindingAdapter;

import com.bawei.networkmoudle.uitls.LoadImage;

public class HomeImgBind {

    @BindingAdapter(value = {"imgUrl"},requireAll = false)
    public static void bindImg(ImageView img,String imgUrl){
        if (TextUtils.isEmpty(imgUrl))
            return;
        LoadImage.loadMatchImg(imgUrl,img);
    }

}